package com.os.toytrade.domain.user;

import com.jc.repository.generator.annotation.NotNull;
import java.io.Serializable;
import java.util.Date;

public class UserShipChargeInfo implements Serializable {

    private String id;

    private String userId;

    private String areaIds;

    private String areaNames;

    private Integer startWeight;

    private Double startPrice;

    private Integer perWeight;

    private Double perPrice;

    private Date createdAt;

    private Date updatedAt;

    private String remarks;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAreaIds() {
        return areaIds;
    }

    public void setAreaIds(String areaIds) {
        this.areaIds = areaIds;
    }

    public String getAreaNames() {
        return areaNames;
    }

    public void setAreaNames(String areaNames) {
        this.areaNames = areaNames;
    }

    public Integer getStartWeight() {
        return startWeight;
    }

    public void setStartWeight(Integer startWeight) {
        this.startWeight = startWeight;
    }

    public Double getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(Double startPrice) {
        this.startPrice = startPrice;
    }

    public Integer getPerWeight() {
        return perWeight;
    }

    public void setPerWeight(Integer perWeight) {
        this.perWeight = perWeight;
    }

    public Double getPerPrice() {
        return perPrice;
    }

    public void setPerPrice(Double perPrice) {
        this.perPrice = perPrice;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserShipChargeInfo other = (UserShipChargeInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getAreaIds() == null ? other.getAreaIds() == null : this.getAreaIds().equals(other.getAreaIds()))
            && (this.getAreaNames() == null ? other.getAreaNames() == null : this.getAreaNames().equals(other.getAreaNames()))
            && (this.getStartWeight() == null ? other.getStartWeight() == null : this.getStartWeight().equals(other.getStartWeight()))
            && (this.getStartPrice() == null ? other.getStartPrice() == null : this.getStartPrice().equals(other.getStartPrice()))
            && (this.getPerWeight() == null ? other.getPerWeight() == null : this.getPerWeight().equals(other.getPerWeight()))
            && (this.getPerPrice() == null ? other.getPerPrice() == null : this.getPerPrice().equals(other.getPerPrice()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getAreaIds() == null) ? 0 : getAreaIds().hashCode());
        result = prime * result + ((getAreaNames() == null) ? 0 : getAreaNames().hashCode());
        result = prime * result + ((getStartWeight() == null) ? 0 : getStartWeight().hashCode());
        result = prime * result + ((getStartPrice() == null) ? 0 : getStartPrice().hashCode());
        result = prime * result + ((getPerWeight() == null) ? 0 : getPerWeight().hashCode());
        result = prime * result + ((getPerPrice() == null) ? 0 : getPerPrice().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        return result;
    }

    public UserShipChargeInfo id(String value) {
        this.id = value;
        return this;
    }

    public UserShipChargeInfo userId(String value) {
        this.userId = value;
        return this;
    }

    public UserShipChargeInfo areaIds(String value) {
        this.areaIds = value;
        return this;
    }

    public UserShipChargeInfo areaNames(String value) {
        this.areaNames = value;
        return this;
    }

    public UserShipChargeInfo startWeight(Integer value) {
        this.startWeight = value;
        return this;
    }

    public UserShipChargeInfo startPrice(Double value) {
        this.startPrice = value;
        return this;
    }

    public UserShipChargeInfo perWeight(Integer value) {
        this.perWeight = value;
        return this;
    }

    public UserShipChargeInfo perPrice(Double value) {
        this.perPrice = value;
        return this;
    }

    public UserShipChargeInfo createdAt(Date value) {
        this.createdAt = value;
        return this;
    }

    public UserShipChargeInfo updatedAt(Date value) {
        this.updatedAt = value;
        return this;
    }

    public UserShipChargeInfo remarks(String value) {
        this.remarks = value;
        return this;
    }
}